﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/manage.master" AutoEventWireup="true"
    CodeFile="newsEdit.aspx.cs" Inherits="newsEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
 <link rel="stylesheet" href="../kindeditor-4.1.3/themes/default/default.css" />
    <link rel="stylesheet" href="../kindeditor-4.1.3/plugins/code/prettify.css" />
    <script type="text/javascript" src="../kindeditor-4.1.3/kindeditor.js"></script>
    <script type="text/javascript" src="../kindeditor-4.1.3/lang/zh_CN.js"></script>
    <script type="text/javascript" src="../kindeditor-4.1.3/plugins/code/prettify.js"></script>
    <script type="text/javascript">
    	var edit1
    	KindEditor.ready(function (K) {
    		var editor1 = K.create('#<%=txtContent.ClientID %>', {
    			cssPath: '../kindeditor-4.1.3/plugins/code/prettify.css',
    			uploadJson: '../kindeditor-4.1.3/asp.net/upload_json.ashx',
    			fileManagerJson: '../kindeditor-4.1.3/asp.net/file_manager_json.ashx',
    			allowFileManager: true,
    			afterCreate: function () {
    				var self = this;
    				edit1 = this;
    				K.ctrl(document, 13, function () {
    					self.sync();
    					K('form[name=example]')[0].submit();
    				});
    				K.ctrl(self.edit.doc, 13, function () {
    					self.sync();
    					K('form[name=example]')[0].submit();
    				});
    			}
    		});

    		prettyPrint();

    	});
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="main" runat="server">
    <table width="100%">
        <tr>
            <td>
                <span>新闻标题：</span>
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="456"></asp:TextBox>
            </td>
        </tr>
		  <tr>
            <td class="style1">
                <span>新闻分类：</span>
            </td>
            <td>
                <asp:DropDownList ID="ddlType" runat="server">
                  
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <span>类容：</span>
            </td>
            <td>
                <asp:TextBox ID="txtContent" Width="666" Height="500" TextMode="MultiLine" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
            </td>
            <td>
                <input type="reset" value="清空" />&nbsp;&nbsp;&nbsp;<asp:Button ID="btnAdd" runat="server"
                    Text="添加" OnClick="btnAdd_Click" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdId" runat="server" />
    </asp:Content>
